package com.yazi.mxz.common.service;

import java.util.List;

import com.myframework.smhj.common.exception.MyException;
import com.myframework.smhj.hibernate.dao.Service;
import com.yazi.mxz.common.entity.beans.LocalSaleGoods;
import com.yazi.mxz.common.entity.beans.LocalSale;
import com.yazi.mxz.common.entity.beans.Store;

public interface LocalSaleService extends Service<LocalSale> {
	

	/**
	 * 更新出售单和单中物品
	 * @param store 店铺(游离对象)
	 * @param sale 出售单(构建对象)
	 * @param ogs 物品集合(构建对象)
	 */
	void editByStore(Store store, LocalSale sale, List<LocalSaleGoods> ogs) throws MyException;
	
	/**
	 * 删除出售单
	 * @param store 店铺(游离对象)
	 * @param saleId 出售单ID
	 */
	void removeByStore(Store store, long saleId);
	
}
